package com.xuerhua.yxt.view;

import java.util.Date;

import com.xuerhua.yxt.utils.DateUtil;

public class SchoolPropertyConsumablesApplyExportView {

	private Integer id;

    private Integer typeId;

    private String typeName;

    private String goodsName;

    private String goodsAttr;

    private String usedName;

    private String usedPlace;

    private Integer number;

    private String describe;
    
    private Date createTime;

    private Date updateTime;

    private Integer cycleUse;

    private String operttorName;
    
    private String cycleUseText;
    
    private String createTimeText;

	private Integer schoolId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getGoodsAttr() {
		return goodsAttr;
	}

	public void setGoodsAttr(String goodsAttr) {
		this.goodsAttr = goodsAttr;
	}
	public String getUsedName() {
		return usedName;
	}

	public void setUsedName(String usedName) {
		this.usedName = usedName;
	}

	public String getUsedPlace() {
		return usedPlace;
	}

	public void setUsedPlace(String usedPlace) {
		this.usedPlace = usedPlace;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCycleUse() {
		return cycleUse;
	}

	public void setCycleUse(Integer cycleUse) {
		this.cycleUse = cycleUse;
	}

	public String getOperttorName() {
		return operttorName;
	}

	public void setOperttorName(String operttorName) {
		this.operttorName = operttorName;
	}

	public String getCycleUseText() {
		if(getCycleUse() == 0)
			cycleUseText = "消耗品";
		else
			cycleUseText = "非消耗品";
		
		return cycleUseText;
	}

	public void setCycleUseText(String cycleUseText) {
		this.cycleUseText = cycleUseText;
	}

	public String getCreateTimeText() {
		if(getCreateTime() != null)
			createTimeText = DateUtil.dateToStr(getCreateTime(), DateUtil.DEFAULT_DATE_FORMAT);
		return createTimeText;
	}

	public void setCreateTimeText(String createTimeText) {
		this.createTimeText = createTimeText;
	}

	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}

}
